import request from '@/utils/request'

export function addspec(params) {
    return request({
        url: '/admin/spec/add',
        method: 'post',
        params
    })
}
export function addSpecValue(params) {
    return request({
        url: '/admin/spec-value/add',
        method: 'post',
        params
    })
}
export function addspu(params) {
    return request({
        url: '/admin/goods/add',
        method: 'post',
        params
    })
}
export function yinseSearch(params) {
    return request({
        url: '/admin/goods/mapping',
        method: 'get',
        params
    })
}
export function goodclass(params) {
    return request({
        url: '/admin/goods/category',
        method: 'get',
        params
    })
}
export function goodbrand(params) {
    return request({
        url: '/admin/goods/brand',
        method: 'get',
        params
    })
}
export function getDetail(params) {
    return request({
        url: '/admin/goods/details',
        method: 'get',
        params
    })
}
